public class TestCourseSelection {
    public static void main(String[] args) {
        CourseSelectionSystem system = new CourseSelectionSystem();

        // 创建课程
        Course course1 = new Course("C001", "Java 编程", "A101", "周一 8:00-10:00", "");
        Course course2 = new Course("C002", "数据结构", "B202", "周三 14:00-16:00", "");

        // 创建教师
        Teacher teacher1 = new Teacher("T001", "张老师", "男", "");
        Teacher teacher2 = new Teacher("T002", "李老师", "女", "");

        // 创建学生
        Student student1 = new Student("S001", "小明", "男");
        Student student2 = new Student("S002", "小红", "女");

        // 添加到系统
        system.addCourse(course1);
        system.addCourse(course2);
        system.addTeacher(teacher1);
        system.addTeacher(teacher2);

        // 教师开课
        system.teacherOpenCourse("T001", "C001");
        system.teacherOpenCourse("T002", "C002");

        // 学生选课
        student1.selectCourse("C001");
        student1.selectCourse("C002");
        student2.selectCourse("C001");

        // 学生退课
        student1.dropCourse("C002");

        // 将学生添加到系统（方便打印课表）
        system.addStudent(student1);
        system.addStudent(student2);

        // 打印学生课表
        system.printStudentCourseSchedule("S001");
        system.printStudentCourseSchedule("S002");
    }
}